package application.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "types")
public class TypesModel
{
    private List<TypeModel> typeModels = new ArrayList<TypeModel>();

    @XmlElement(name = "type")
    public List<TypeModel> getTypeModels()
    {
        return typeModels;
    }

    public void setTypeModels(List<TypeModel> typeModels)
    {
        this.typeModels = typeModels;
    }

    public void addType(TypeModel typeModel)
    {
        typeModels.add(typeModel);
    }
}
